<?php
define("TEST_CABINET_EXTENSION", ".php");

/**
 * Testing utility
 *
 * @package test
 */
class Test_Suite extends GroupTest {
	
	/**
	 * Include all the test files in a given directory
	 *
	 * @param String $directory
	 */
	public function package($path) {
		$fullpath = dirname(__FILE__) . DIRECTORY_SEPARATOR . JunctionFileCabinet::classtofile($path);
		$directory = new DirectoryIterator($fullpath);
		foreach ($directory as $file) {
			if (!is_dir($file) && strstr($file, TEST_CABINET_EXTENSION)) {
				$this->addTestFile(JunctionFileCabinet::classtofile($fullpath) . DIRECTORY_SEPARATOR . $file);
			}
		}
	}
}
?>